// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import com.nokia.meego 1.0
import "../parts/"

Page {
    id: karmaHelp
    tools: helpTools
    Rectangle{
        anchors.fill: parent
        color: "#e1ecef"

    }
    Flickable{
        id: flickhelp
        width: parent.width; height: parent.height-titlebar.height
        contentWidth: parent.width;
        contentHeight: textHelp.height+100
        anchors.top: titlebar.bottom
        anchors.right: parent.right
        Text {
            id: textHelp
            //anchors.fill: parent
            font.pixelSize: 22
            width: parent.width
            wrapMode: Text.WordWrap
            textFormat: Text.RichText
            text: qsTr("<b>The Karma Way</b><p><b>The Karma Way</b> is a simple app to keep track of your karma</p>\
                <p>Edit your profile in settings to add your photo and name</p>\
                <p>In the karma actions list you can add your good and bad actions, then you will see them refelcted in the main page's line graph.\
                The blue line represents your current karma status</p>")
        }
    }

    //Page layout is divided in 3
    TitleBar{
        id: titlebar
    }

    ToolBarLayout {
        id: helpTools
        Rectangle{
            color:"#8f00FF"
            anchors.fill: parent
        }
        visible: false
        ToolIcon { iconId: "toolbar-back"; anchors.left: parent.left; onClicked: { pageStack.pop(); }}
    }
}
